package com.ld.control.business.sample.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ld.control.business.sample.model.SampleModel;
import com.ld.control.business.sample.vo.resp.SampleExtRespVo;
import com.ld.control.business.sample.vo.resp.SampleRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 样品表，存放任务的样品信息 Mapper 接口
 * </p>
 *
 * @author wangfeng
 * @since 2024-06-12
 */
public interface SampleMapper extends BaseMapper<SampleModel> {

    IPage<SampleRespVo> selectListByCondition(IPage<SampleRespVo> page, @Param("taskExampleId") Long taskExampleId, @Param("equipmentId") Long equipmentId);

    IPage<SampleExtRespVo> selectAllGroupPageList(IPage<SampleExtRespVo> page);

    List<SampleRespVo> selectByTaskExampleIdAndBarcodeAndEquipmentId(@Param("taskExampleId") Long taskExampleId, @Param("barcode") String barcode, @Param("equipmentId") Long equipmentId);

}
